package com.ruoyi.web.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 体检新闻对象 examination_news
 *
 * @author drx
 * @date 2025-05-19
 */
@ApiModel("体检新闻")
public class ExaminationNews extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @ApiModelProperty("$column.columnComment")
    private Long id;

    /**
     * 文章标题
     */
    @Excel(name = "文章标题")
    @ApiModelProperty("文章标题")
    private String title;

    /**
     * TDK-D
     */
    @Excel(name = "摘要")
    @ApiModelProperty("TDK-D")
    private String description;

    /**
     * 关键词
     */
    @Excel(name = "关键词")
    @ApiModelProperty("关键词")
    private String keywords;

    /**
     * 类型 字典	 examination_news_type
     */
    @Excel(name = "类型",dictType = "examination_news_type")
    @ApiModelProperty("类型 字典	 examination_news_type")
    private String type;

    /**
     * 文章内容
     */
    @Excel(name = "文章内容")
    @ApiModelProperty("文章内容")
    private String content;

    /**
     * 作者来源
     */
    @Excel(name = "作者来源")
    @ApiModelProperty("作者来源")
    private String authorSource;

    /**
     * 标签-->1/头条  2、置顶  3、推荐、4特推
     */
    @Excel(name = "标签", readConverterExp = "1=头条,2=置顶,3=推荐,4=特推")
    @ApiModelProperty("标签-->1/头条  2、置顶  3、推荐、4特推")
    private String label;

    /**
     * 温馨提示
     */
    @Excel(name = "温馨提示")
    @ApiModelProperty("温馨提示")
    private String warmPrompt;

    /**
     * 参考资料
     */
    @Excel(name = "参考资料")
    @ApiModelProperty("参考资料")
    private String referenceMaterial;

    /**
     * 创建人名称
     */
    @Excel(name = "创建人名称")
    @ApiModelProperty("创建人名称")
    private String createName;

    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    @ApiModelProperty("更新人名称")
    private String updateName;

    /**
     * 是否删除（0否；1是）
     */
    @ApiModelProperty("是否删除（0否；1是）")
    private String delFlag;

    /*
    *状态 0 未发布 1 已发布
    * */
    @Excel(name = "状态", readConverterExp = "0=未发布,1=已发布")
    @ApiModelProperty("状态 0 未发布 1 已发布")
    private String state;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getType() {
        return type;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getContent() {
        return content;
    }

    public void setAuthorSource(String authorSource) {
        this.authorSource = authorSource;
    }

    public String getAuthorSource() {
        return authorSource;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getLabel() {
        return label;
    }

    public void setWarmPrompt(String warmPrompt) {
        this.warmPrompt = warmPrompt;
    }

    public String getWarmPrompt() {
        return warmPrompt;
    }

    public void setReferenceMaterial(String referenceMaterial) {
        this.referenceMaterial = referenceMaterial;
    }

    public String getReferenceMaterial() {
        return referenceMaterial;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getCreateName() {
        return createName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("description", getDescription())
                .append("keywords", getKeywords())
                .append("type", getType())
                .append("content", getContent())
                .append("authorSource", getAuthorSource())
                .append("label", getLabel())
                .append("warmPrompt", getWarmPrompt())
                .append("referenceMaterial", getReferenceMaterial())
                .append("createBy", getCreateBy())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateName", getUpdateName())
                .append("updateTime", getUpdateTime())
                .append("delFlag", getDelFlag())
                .toString();
    }
}
